API

Procurement APIs

POST procurement/returns

Create a new supplier return

HTTP method POST
URI https://api.rambase.net/procurement/returns
Supported formats Xml, Html, Json (ex. $format=json)
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 3231, version 7

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
<SupplierReturn>
2
     <Type
Type

Required/mandatory field

Type of supplier return

Applicable domain values can be found here

>
{String}</Type>
3
     <SuppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

This field is optional.

>
{String}</SuppliersReference>
4
     <SuppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

This field is optional.

>
{String}</SuppliersReferenceNumber>
5
     <Note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

This field is optional.

>
{String}</Note>
6
     <Currency
Currency

Three character code following the ISO 4217 standard

Applicable domain values can be found here

This field is optional.

>
{String}</Currency>
7
     <ShippingAddressAttention
ShippingAddressAttention

Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.

This field is optional.

>
{String}</ShippingAddressAttention>
8
     <Location
Location

This field is optional.

>
9
          <LocationId
LocationId

Location identifier

Minimum value: 1000

This field is optional.

>
{Integer}</LocationId>
10
     </Location>
11
     <Supplier
Supplier

This field is optional.

>
12
          <SupplierId
SupplierId

RamBase supplier identifier

Minimum value: 10000

This field is optional.

>
{Integer}</SupplierId>
13
     </Supplier>
14
     <ShippingAddress
ShippingAddress

This field is optional.

>
15
          <AddressId
AddressId

Address identifier

Minimum value: 1

This field is optional.

>
{Integer}</AddressId>
16
     </ShippingAddress>
17
     <Shipment
Shipment

This field is optional.

>
18
          <Priority
Priority

Priority of the shipment

Applicable domain values can be found here

This field is optional.

>
{Integer}</Priority>
19
          <DeliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Applicable domain values can be found here

This field is optional.

>
{String}</DeliveryTerms>
20
          <DeliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

This field is optional.

>
{String}</DeliveryTermPlace>
21
          <ShippingService
ShippingService

This field is optional.

>
22
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

Minimum value: 100000

This field is optional.

>
{Integer}</ShippingServiceId>
23
          </ShippingService>
24
     </Shipment>
25
</SupplierReturn>
1
{
2
     "supplierReturn": {
3
          "type
Type

Required/mandatory field

Type of supplier return

Applicable domain values can be found here

":
"{String}",
4
          "suppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

This field is optional.

":
"{String}",
5
          "suppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

This field is optional.

":
"{String}",
6
          "note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

This field is optional.

":
"{String}",
7
          "currency
Currency

Three character code following the ISO 4217 standard

Applicable domain values can be found here

This field is optional.

":
"{String}",
8
          "shippingAddressAttention
ShippingAddressAttention

Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.

This field is optional.

":
"{String}",
9
          "location
Location

This field is optional.

":
{
10
               "locationId
LocationId

Location identifier

Minimum value: 1000

This field is optional.

":
"{Integer}"
11
          },
12
          "supplier
Supplier

This field is optional.

":
{
13
               "supplierId
SupplierId

RamBase supplier identifier

Minimum value: 10000

This field is optional.

":
"{Integer}"
14
          },
15
          "shippingAddress
ShippingAddress

This field is optional.

":
{
16
               "addressId
AddressId

Address identifier

Minimum value: 1

This field is optional.

":
"{Integer}"
17
          },
18
          "shipment
Shipment

This field is optional.

":
{
19
               "priority
Priority

Priority of the shipment

Applicable domain values can be found here

This field is optional.

":
"{Integer}",
20
               "deliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Applicable domain values can be found here

This field is optional.

":
"{String}",
21
               "deliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

This field is optional.

":
"{String}",
22
               "shippingService
ShippingService

This field is optional.

":
{
23
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
24
               }
25
          }
26
     }
27
}

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]
$showCustomFields Boolean, optional Set to "true" to include custom fields. Default value is false.

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<SupplierReturn>
2
     <SupplierReturnId
SupplierReturnId

Supplier return identifier

>
{Integer}</SupplierReturnId>
3
     <Status
Status

Status of supplier return

Possible domain values can be found here

>
{Integer}</Status>
4
     <Type
Type

Type of supplier return

Possible domain values can be found here

>
{String}</Type>
5
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
6
     <ShippingDate
ShippingDate

Date of shipment departure

>
{Date}</ShippingDate>
7
     <SuppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

>
{String}</SuppliersReference>
8
     <SuppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

>
{String}</SuppliersReferenceNumber>
9
     <Note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

>
{String}</Note>
10
     <NetWeight
NetWeight

The net weight of object (excluding packing meterial) in kilograms

>
{Decimal}</NetWeight>
11
     <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

>
{String}</Currency>
12
     <ShippingAddressAttention
ShippingAddressAttention

Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.

>
{String}</ShippingAddressAttention>
13
     <ShippingAddressPhone
ShippingAddressPhone

Phone number of the shipping address. When changing shipping address, the ShippingAddressPhone will be overridden by the phone number of the new shipping address.

>
{String}</ShippingAddressPhone>
14
     <ShippingAddressEmail
ShippingAddressEmail

Email address of the shipping address. When changing shipping address, the ShippingAddressEmail will be overridden by the email of the new shipping address.

>
{String}</ShippingAddressEmail>
15
     <Assignee
Assignee

The user who has been assigned to work with this object.

>
16
          <UserId
UserId

User identifier

>
{Integer}</UserId>
17
          <Name
Name

Name of the user

>
{String}</Name>
18
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
19
          <UserLink
UserLink

User reference

>
{String}</UserLink>
20
     </Assignee>
21
     <Location>
22
          <LocationId
LocationId

Location identifier

>
{Integer}</LocationId>
23
          <Name
Name

Name of location

>
{String}</Name>
24
          <ShortName
ShortName

Unique abbreviation/short name of the location

>
{String}</ShortName>
25
          <LocationLink
LocationLink

Location reference

>
{String}</LocationLink>
26
     </Location>
27
     <Supplier>
28
          <SupplierId
SupplierId

RamBase supplier identifier

>
{Integer}</SupplierId>
29
          <Name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

>
{String}</Name>
30
          <FirstName
FirstName

Firstname/givenname if the supplier is a person

>
31
               <DefaultInvoiceAddress>
32
                    <AddressId
AddressId

Address identifier

>
{Integer}</AddressId>
33
                    <Attention
Attention

Attention note.

>
{String}</Attention>
34
                    <AddressLine1
AddressLine1

First address line

>
{String}</AddressLine1>
35
                    <AddressLine2
AddressLine2

Second address line

>
{String}</AddressLine2>
36
                    <PostalCode
PostalCode

Postalcode/Postcode/ZIP

>
{String}</PostalCode>
37
                    <City
City

City/town/village

>
{String}</City>
38
                    <Region
Region

Region/province/state

>
{String}</Region>
39
                    <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

>
{String}</CountryCode>
40
                    <Country
Country

English name of country.

>
{String}</Country>
41
                    <AddressLink
AddressLink

Address reference

>
{String}</AddressLink>
42
               </DefaultInvoiceAddress>
43
          </FirstName>
44
          <SupplierLink
SupplierLink

Supplier reference

>
{String}</SupplierLink>
45
     </Supplier>
46
     <Totals>
47
          <Currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

>
{String}</Currency>
48
          <FreightAmount
FreightAmount

Freight amount in transaction document's currency

>
{Decimal}</FreightAmount>
49
          <TotalAmount
TotalAmount

The total amount in object currency, including VAT

>
{Decimal}</TotalAmount>
50
          <Currency
Currency

Currency used in conversion. Default is company accounting currency. Three character code following the ISO 4217 standard.

>
{String}</Currency>
51
          <ExchangeRate
ExchangeRate

The exchange rate used in convertion

>
{Decimal}</ExchangeRate>
52
          <FreightAmount
FreightAmount

Freight amount in company currency.

>
{Decimal}</FreightAmount>
53
          <TotalAmount
TotalAmount

The total amount in company currency, including VAT.

>
{Decimal}</TotalAmount>
54
     </Totals>
55
     <ShippingAddress>
56
          <AddressId
AddressId

Address identifier

>
{Integer}</AddressId>
57
          <Name
Name

Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.

>
{String}</Name>
58
          <Firstname
Firstname

Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.

>
{String}</Firstname>
59
          <AddressLine1
AddressLine1

First address line

>
{String}</AddressLine1>
60
          <AddressLine2
AddressLine2

Second address line

>
{String}</AddressLine2>
61
          <PostalCode
PostalCode

Postalcode/Postcode/ZIP

>
{String}</PostalCode>
62
          <City
City

City/town/village

>
{String}</City>
63
          <Region
Region

Region/province/state

>
{String}</Region>
64
          <CountryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

>
{String}</CountryCode>
65
          <Country
Country

English name of country.

>
{String}</Country>
66
          <AddressLink
AddressLink

Address reference

>
{String}</AddressLink>
67
     </ShippingAddress>
68
     <Shipment>
69
          <Priority
Priority

Priority of the shipment

Possible domain values can be found here

>
{Integer}</Priority>
70
          <DeliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Possible domain values can be found here

>
{String}</DeliveryTerms>
71
          <DeliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

>
{String}</DeliveryTermPlace>
72
          <DepartingShipment>
73
               <ShipmentId
ShipmentId

Shipment identifier

>
{Long}</ShipmentId>
74
               <DepartingWaybill>
75
                    <DepartingWaybillId
DepartingWaybillId

Departing waybill identifier

>
{Integer}</DepartingWaybillId>
76
                    <DepartingWaybillLink
DepartingWaybillLink

Departing waybill reference

>
{String}</DepartingWaybillLink>
77
               </DepartingWaybill>
78
               <ShipmentLink
ShipmentLink

Shipment reference

>
{String}</ShipmentLink>
79
          </DepartingShipment>
80
          <ShippingService>
81
               <ShippingServiceId
ShippingServiceId

Shipping service identifier

>
{Integer}</ShippingServiceId>
82
               <Name
Name

Name of shipping service

>
{String}</Name>
83
               <Carrier>
84
                    <CarrierId
CarrierId

Carrier identifier

>
{Integer}</CarrierId>
85
                    <CarrierLink
CarrierLink

Carrier reference

>
{String}</CarrierLink>
86
               </Carrier>
87
               <ShippingServiceLink
ShippingServiceLink

Shipping service reference

>
{String}</ShippingServiceLink>
88
          </ShippingService>
89
     </Shipment>
90
     <Payment>
91
          <PaymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the supplier.

Possible domain values can be found here

>
{String}</PaymentTerms>
92
          <NotificationId
NotificationId

Notification identifier

>
{Integer}</NotificationId>
93
          <Status
Status

Status of the notification

>
{Integer}</Status>
94
          <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
95
          <Message
Message

The message from the notification definition, expanded with parameters.

>
{String}</Message>
96
          <TranslatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

>
{String}</TranslatedMessage>
97
          <NotificationType>
98
               <NotificationTypeId
NotificationTypeId

Notification type identifier

>
{String}</NotificationTypeId>
99
               <Category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

>
{String}</Category>
100
               <NotificationTypeLink
NotificationTypeLink

Notification type reference

>
{String}</NotificationTypeLink>
101
          </NotificationType>
102
          <NotificationLink
NotificationLink

Notification reference

>
{String}</NotificationLink>
103
     </Payment>
104
</SupplierReturn>
1
{
2
     "supplierReturn": {
3
          "supplierReturnId
SupplierReturnId

Supplier return identifier

":
"{Integer}",
4
          "status
Status

Status of supplier return

Possible domain values can be found here

":
"{Integer}",
5
          "type
Type

Type of supplier return

Possible domain values can be found here

":
"{String}",
6
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
7
          "shippingDate
ShippingDate

Date of shipment departure

":
"{Date}",
8
          "suppliersReference
SuppliersReference

Suppliers/sellers reference. Typically a person.

":
"{String}",
9
          "suppliersReferenceNumber
SuppliersReferenceNumber

Suppliers/sellers reference number. Typically to an external system.

":
"{String}",
10
          "note
Note

Additional information regarding the object (free text). This note might be visible to customers/suppliers.

":
"{String}",
11
          "netWeight
NetWeight

The net weight of object (excluding packing meterial) in kilograms

":
"{Decimal}",
12
          "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
13
          "shippingAddressAttention
ShippingAddressAttention

Attention of the shipping address. When changing shipping address, the ShippingAddressAttention will be overridden by the attention of the new shipping address.

":
"{String}",
14
          "shippingAddressPhone
ShippingAddressPhone

Phone number of the shipping address. When changing shipping address, the ShippingAddressPhone will be overridden by the phone number of the new shipping address.

":
"{String}",
15
          "shippingAddressEmail
ShippingAddressEmail

Email address of the shipping address. When changing shipping address, the ShippingAddressEmail will be overridden by the email of the new shipping address.

":
"{String}",
16
          "assignee
Assignee

The user who has been assigned to work with this object.

":
{
17
               "userId
UserId

User identifier

":
"{Integer}",
18
               "name
Name

Name of the user

":
"{String}",
19
               "firstName
FirstName

First name of the user

":
"{String}",
20
               "userLink
UserLink

User reference

":
"{String}"
21
          },
22
          "location": {
23
               "locationId
LocationId

Location identifier

":
"{Integer}",
24
               "name
Name

Name of location

":
"{String}",
25
               "shortName
ShortName

Unique abbreviation/short name of the location

":
"{String}",
26
               "locationLink
LocationLink

Location reference

":
"{String}"
27
          },
28
          "supplier": {
29
               "supplierId
SupplierId

RamBase supplier identifier

":
"{Integer}",
30
               "name
Name

Name of supplier (name of company or surname/familyname/lastname of a person)

":
"{String}",
31
               "firstName
FirstName

Firstname/givenname if the supplier is a person

":
{
32
                    "defaultInvoiceAddress": {
33
                         "addressId
AddressId

Address identifier

":
"{Integer}",
34
                         "attention
Attention

Attention note.

":
"{String}",
35
                         "addressLine1
AddressLine1

First address line

":
"{String}",
36
                         "addressLine2
AddressLine2

Second address line

":
"{String}",
37
                         "postalCode
PostalCode

Postalcode/Postcode/ZIP

":
"{String}",
38
                         "city
City

City/town/village

":
"{String}",
39
                         "region
Region

Region/province/state

":
"{String}",
40
                         "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

":
"{String}",
41
                         "country
Country

English name of country.

":
"{String}",
42
                         "addressLink
AddressLink

Address reference

":
"{String}"
43
                    }
44
               },
45
               "supplierLink
SupplierLink

Supplier reference

":
"{String}"
46
          },
47
          "totals": {
48
               "currency
Currency

Three character code following the ISO 4217 standard

Possible domain values can be found here

":
"{String}",
49
               "freightAmount
FreightAmount

Freight amount in transaction document's currency

":
"{Decimal}",
50
               "totalAmount
TotalAmount

The total amount in object currency, including VAT

":
"{Decimal}",
51
               "currency
Currency

Currency used in conversion. Default is company accounting currency. Three character code following the ISO 4217 standard.

":
"{String}",
52
               "exchangeRate
ExchangeRate

The exchange rate used in convertion

":
"{Decimal}",
53
               "freightAmount
FreightAmount

Freight amount in company currency.

":
"{Decimal}",
54
               "totalAmount
TotalAmount

The total amount in company currency, including VAT.

":
"{Decimal}"
55
          },
56
          "shippingAddress": {
57
               "addressId
AddressId

Address identifier

":
"{Integer}",
58
               "name
Name

Name of receiver (Name of company or last name of a person). Note that default invoice address must have the same name as the customer.

":
"{String}",
59
               "firstname
Firstname

Firstname if the receiver is a person. Note that default invoice address must have the same firstname as the customer.

":
"{String}",
60
               "addressLine1
AddressLine1

First address line

":
"{String}",
61
               "addressLine2
AddressLine2

Second address line

":
"{String}",
62
               "postalCode
PostalCode

Postalcode/Postcode/ZIP

":
"{String}",
63
               "city
City

City/town/village

":
"{String}",
64
               "region
Region

Region/province/state

":
"{String}",
65
               "countryCode
CountryCode

Two-character code (ISO 3166) identifying the country.

":
"{String}",
66
               "country
Country

English name of country.

":
"{String}",
67
               "addressLink
AddressLink

Address reference

":
"{String}"
68
          },
69
          "shipment": {
70
               "priority
Priority

Priority of the shipment

Possible domain values can be found here

":
"{Integer}",
71
               "deliveryTerms
DeliveryTerms

Default delivery terms for the supplier. The delivery terms is based on the Incoterms rules from ICC (International Chamber of Commerce).

Possible domain values can be found here

":
"{String}",
72
               "deliveryTermPlace
DeliveryTermPlace

A named place, which, together with the content of Delivery terms, determines where and when the costs, responsibility and risk for a shipment are transferred from the seller to the buye

":
"{String}",
73
               "departingShipment": {
74
                    "shipmentId
ShipmentId

Shipment identifier

":
"{Long}",
75
                    "departingWaybill": {
76
                         "departingWaybillId
DepartingWaybillId

Departing waybill identifier

":
"{Integer}",
77
                         "departingWaybillLink
DepartingWaybillLink

Departing waybill reference

":
"{String}"
78
                    },
79
                    "shipmentLink
ShipmentLink

Shipment reference

":
"{String}"
80
               },
81
               "shippingService": {
82
                    "shippingServiceId
ShippingServiceId

Shipping service identifier

":
"{Integer}",
83
                    "name
Name

Name of shipping service

":
"{String}",
84
                    "carrier": {
85
                         "carrierId
CarrierId

Carrier identifier

":
"{Integer}",
86
                         "carrierLink
CarrierLink

Carrier reference

":
"{String}"
87
                    },
88
                    "shippingServiceLink
ShippingServiceLink

Shipping service reference

":
"{String}"
89
               }
90
          },
91
          "payment": {
92
               "paymentTerms
PaymentTerms

Terms of payment. Defaut value is retrieved from the supplier.

Possible domain values can be found here

":
"{String}",
93
               "notificationId
NotificationId

Notification identifier

":
"{Integer}",
94
               "status
Status

Status of the notification

":
"{Integer}",
95
               "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
96
               "message
Message

The message from the notification definition, expanded with parameters.

":
"{String}",
97
               "translatedMessage
TranslatedMessage

The translated message from the notification definition, expanded with parameters.

":
"{String}",
98
               "notificationType": {
99
                    "notificationTypeId
NotificationTypeId

Notification type identifier

":
"{String}",
100
                    "category
Category

Category of notification type (warning, information etc)

Possible domain values can be found here

":
"{String}",
101
                    "notificationTypeLink
NotificationTypeLink

Notification type reference

":
"{String}"
102
               },
103
               "notificationLink
NotificationLink

Notification reference

":
"{String}"
104
          }
105
     }
106
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 100147 HTTP 404 Notification type not found
Error 103837 HTTP 400 Recalculation failed. Missing product id.
Error 103838 HTTP 400 Recalculation failed. Missing location.
Error 101069 HTTP 404 Stock assignment link - document not found
Error 101050 HTTP 400 Purchase Quote Item quantity needs to be increased
Error 101045 HTTP 400 The purchase quote item needs to be activated
Error 101401 HTTP 400 The Ship and debit purchase quote must be in the same database as the stock assignment
Error 101047 HTTP 400 The purchase quote item has too low available quantity
Error 101400 HTTP 400 Supplier credit claim has been created from shipping advice
Error 102483 HTTP 400 Finance project is required for general ledger account {0}
Error 102484 HTTP 400 Asset is required for general ledger account {0}
Error 102485 HTTP 400 Dimension {0} ({1}) is required for general ledger account {2}
Error 101313 HTTP 400 Department number is not valid: {0}
Error 101320 HTTP 400 The project number is not valid: {0}
Error 101500 HTTP 400 Project {0} could not be used : Check project FromPeriod and ToPeriod.
Error 101501 HTTP 400 Asset is not allowed on general ledger account {0}
Error 101326 HTTP 400 The asset number is not valid : {0}
Error 102486 HTTP 400 Invalid value for dimension {0}